package com.qf.service.Impl;

import com.qf.entity.PayRecord;
import com.qf.mapper.PayRecordMapper;
import com.qf.service.PayRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

/**
 * --- 天道酬勤 ---
 *
 * @author Hulboy
 * @date 2024/7/25
 * @desc --- 代码敲烂 月薪过万 ---
 */
@Service
public class PayRecordServiceImpl implements PayRecordService {
    @Autowired
    private PayRecordMapper payRecordMapper;

    @Override
    public List<PayRecord> findAll(HashMap<String, String> map) {
        return payRecordMapper.findAll(map);
    }

    @Override
    public boolean delBatch(List<Integer> ids) {
        return payRecordMapper.delBatch(ids);
    }


    @Override
    public boolean addPayRecord(PayRecord pay) {
        return payRecordMapper.addPayRecord(pay);
    }


    @Override
    public boolean edit(PayRecord pay) {
        return payRecordMapper.edit(pay);
    }

    @Override
    public boolean deleteById(int id) {
        return payRecordMapper.deleteById(id);
    }
}
